import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '../views/Layout.vue'
import Student from "../views/Student";
import Classes from "../views/Classes";
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    children:[
        {path: '/student/list', component: Student},
        {path: '/classes/list', component: Classes},
    ]
  },
]
const router = new VueRouter({
  routes
})
export default router
